package com.zp.base.entity.examMaintenance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zp.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 检查项目与诊疗项目对照对象 exam_vs_clinic
 *
 * @author zhang peng
 * @ date 2023-05-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("exam_vs_clinic")
public class ExamVsClinic extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "vs_id")
    private String vsId;
    /**
     * 检查类型ID
     */
    private String examId;
    /**
     * 诊疗项目ID
     */
    private String clinicId;
    /**
     * 执行科室
     */
    private String performedBy;
    /**
     * 检查部位(字典position_type)
     */
    private String examPosition;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 标志
     */
    @TableLogic
    private String delFlag;
    /**
     * 备注信息
     */
    private String remarks;

    /**
     * 执行科室名称
     */
    @TableField(exist = false)
    private String deptName;

    /**
     * 诊疗项目名称
     */
    @TableField(exist = false)
    private String itemName;

    /**
     * 诊疗项目编码
     */
    @TableField(exist = false)
    private String itemCode;

    private String orgId;

    /**
     * 项目数量
     */
    private int amount;

    public void initEntity () {
        this.delFlag = "0";
    }


}
